package com.gzz.orchid.context.application.rbac.pojo;

import com.gzz.orchid.context.infrastructure.definition.Action;
import com.gzz.orchid.context.infrastructure.definition.Status;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Set;

/**
 * @author higmd
 */
@Data
public class ModuleVo {
    public LocalDateTime createdOn;
    public String createdBy;
    public LocalDateTime updatedOn;
    public String updatedBy;
    private Long id;
    /**
     * 父级模块 id parentId
     */
    private Long parentId;
    /**
     * 模块编码 code
     */
    private String code;
    /**
     * 模块名称 name
     */
    private String name;
    /**
     * 模块描述 description
     */
    private String description;
    /**
     * 图标 icon
     */
    private String icon;
    /**
     * 排序 idx
     */
    private Integer idx;
    /**
     * 权限操作 actions
     */
    private Set<Action> actions;
    /**
     * 状态 status
     */
    private Status status;
}
